package org.ns.learn.rpc.register;

import org.springframework.boot.context.properties.ConfigurationProperties;

@ConfigurationProperties(prefix = "rpc.server.register")
public class RpcServerRegisterConfig {
    private String name; // 注册的命名
    private String registerServerAddress; // 注册服务地址

    private String host; // 绑定主机名
    private int port; // 绑定端口号

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getRegisterServerAddress() {
        return registerServerAddress;
    }

    public void setRegisterServerAddress(String registerServerAddress) {
        this.registerServerAddress = registerServerAddress;
    }

    public String getHost() {
        return host;
    }

    public void setHost(String host) {
        this.host = host;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }

    @Override
    public String toString() {
        return "RpcServerRegisterConfig{" +
                "registerServerAddress='" + registerServerAddress + '\'' +
                ", port=" + port +
                '}';
    }
}
